package cn.iocoder.yudao.module.social.controller.admin.interaction.vo;

import io.swagger.v3.oas.annotations.media.Schema;
import lombok.Data;

import jakarta.validation.constraints.NotBlank;
import jakarta.validation.constraints.NotNull;
import jakarta.validation.constraints.Size;

@Schema(description = "管理后台 - 互动创建 Request VO")
@Data
public class InteractionCreateReqVO {

    @Schema(description = "内容编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "内容编号不能为空")
    private Long contentId;

    @Schema(description = "用户编号", requiredMode = Schema.RequiredMode.REQUIRED, example = "1024")
    @NotNull(message = "用户编号不能为空")
    private Long userId;

    @Schema(description = "互动类型", requiredMode = Schema.RequiredMode.REQUIRED, example = "comment")
    @NotBlank(message = "互动类型不能为空")
    @Size(max = 50, message = "互动类型长度不能超过50个字符")
    private String type;

    @Schema(description = "互动内容", example = "这是一条评论")
    @Size(max = 1000, message = "互动内容长度不能超过1000个字符")
    private String body;

    @Schema(description = "父互动编号", example = "1")
    private Long parentId;

}
